package com.xjx.dao;

import com.xjx.pojo.Provider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProviderDao {
    int count(@Param(value = "proName")String proName,
              @Param(value = "proCode")String proCode,
              @Param(value = "startDate")String startDate,
              @Param(value = "endDate")String endDate);
    List<Provider> findByPage(@Param("start") int start,
                              @Param("size")int size,
                              @Param("proName") String proName,
                              @Param("proCode") String proCode,
                              @Param("startDate") String startDate,
                              @Param("endDate") String endDate);
    int save(Provider provider);
    int modify(Provider provider);
    int delete(Integer id);
    Provider findById(Integer id);

}
